import { useMemo } from "react";

import { SvgProps } from "./";

/** deck card 收藏数 */
export default function Star({ className, onClick }: SvgProps) {
  return useMemo(
    () => (
      <svg
        className={className}
        viewBox="0 0 1060 1024"
        version="1.1"
        xmlns="http://www.w3.org/2000/svg"
        p-id="9455"
        onClick={onClick}
      >
        <path
          d="M1055.137526 452.083852c-9.317669-33.850265-38.921907-59.562313-73.833679-64.51601l-221.618982-38.686018L660.492974 147.549413c-13.917531-31.845197-47.296015-53.075328-83.151348-53.075329-34.322046 0-66.874914 20.52246-82.915457 52.485603l-99.427782 202.040083L173.379406 389.337019c-34.911771 4.717807-63.690394 29.014513-75.249021 63.808339l-0.353836 1.061507c-9.435614 33.142594 0.23589 70.413269 24.768487 94.945865l159.461875 148.610919-41.634647 215.839668c-6.722875 33.73232 7.902327 70.649159 36.327114 91.997236 15.214927 11.440682 34.557936 17.809721 54.25478 17.809721 14.979037 0 29.722184-3.6563 42.696153-10.49712l203.691315-100.961069 202.158028 101.079014c14.153421 7.07671 29.486293 10.968901 43.049989 10.968901 20.168625 0 39.393688-6.722875 54.136835-18.871228 28.660677-21.819857 42.342317-56.731629 35.855333-91.289564l-40.101359-216.193504 158.990094-149.790371 0.589726-0.589726c25.122322-25.122322 33.96821-61.567381 23.117254-95.181755z m-60.152039 57.793135L815.472933 679.010366 860.881824 923.510712c2.830684 14.979037-3.42041 30.31191-16.276434 39.865469l-1.061506 0.825616c-5.425478 4.599862-12.973969 7.07671-20.994241 7.07671-5.189588 0-12.856024-2.123013-19.460954-5.425478l-225.629117-112.873531-227.280351 112.755586-0.825616 0.353836c-5.307533 2.948629-11.676572 4.363971-18.163557 4.363971-8.374107 0-16.512324-2.594794-22.763418-7.194656-12.384243-9.317669-19.107118-25.594103-16.276434-39.747523l47.178069-244.618291-179.748445-167.482147c-10.49712-10.733011-15.096982-28.070951-11.322736-42.460262 5.425478-15.686708 17.219995-25.829993 32.434922-27.717116L430.499885 395.824004l111.222299-225.511173c7.07671-14.153421 21.112186-23.235199 35.737388-23.235199 14.861092 0 29.604239 9.199724 35.029716 21.937802l111.812025 227.162405 248.510482 43.403824 1.061506 0.117945c14.625202 2.005068 27.009445 12.738079 30.665745 26.773555l0.471781 1.533287c4.835752 14.625202 0.943561 30.665745-10.02534 41.870537z"
          fill="#2c2c2c"
          p-id="9456"
          data-spm-anchor-id="a313x.7781069.0.i1"
          className="on-bg-l-fill"
        ></path>
        <path
          d="M822.313753 523.440682c-0.707671 0-1.415342 0-2.123014-0.23589l-163.943791-28.660678-73.361898-149.0827c-2.948629-6.015204-0.471781-13.209859 5.543423-16.158488 6.015204-2.948629 13.209859-0.471781 16.158489 5.543423l67.93642 137.995853L824.436766 499.379866c3.18452 0.589726 6.015204 2.358903 7.784381 4.953698 1.887123 2.594794 2.594794 5.897259 2.005068 9.081778-1.061507 5.779314-6.015204 10.02534-11.912462 10.02534z"
          fill="#666666"
          p-id="9457"
          className="on-bg-l-fill"
        ></path>
        <path
          d="M728.193504 929.643861c-13.563695 0-28.896568-3.892191-43.049989-10.968901l-202.158028-101.079014L279.530062 918.557015c-12.856024 6.84082-27.599171 10.49712-42.696153 10.49712-19.696844 0-39.039853-6.369039-54.25478-17.809721-28.542732-21.348076-43.049988-58.382861-36.327113-91.997236l41.634646-215.839668-159.461875-148.610919C3.892191 430.263994-5.897259 392.99332 3.6563 359.850726l0.353836-1.061507c11.558627-34.675881 40.337249-59.090532 75.249021-63.808339l221.618982-40.33725 99.309836-202.158028C416.228519 20.52246 448.663442 0 483.103432 0c35.855333 0 69.115872 21.348076 83.151348 53.075328l99.191891 201.332412 221.618982 38.686017c34.911771 4.953697 64.51601 30.665745 73.833679 64.51601 10.968901 33.614375 2.123013 70.059433-23.117254 95.299701l-0.589726 0.589726-158.990094 149.790371 40.101359 216.193503c6.486985 34.557936-7.312601 69.469707-35.855333 91.289565-14.979037 12.266298-34.2041 18.871228-54.25478 18.871228z"
          fill="#549E42"
          opacity=".3"
          p-id="9458"
          data-spm-anchor-id="a313x.7781069.0.i2"
          className="primary-l-fill"
        ></path>
      </svg>
    ),
    [onClick]
  );
}
